import { request, config } from 'utils'
import { getMenus } from './../utils/menu.js'

const { api } = config
const { menus } = api

export async function query (params) {
  // return request({
  //   url: menus,
  //   method: 'get',
  //   data: params,
  // })
  return getMenus()
}
export async function getMenuTree (params) {
  return request({
    url: menus,
    method: 'get',
    data: params,
  })
}
